package com.roseski.wechatutil;

import java.io.InputStream;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.stereotype.Component;

@Component
public class MyConfig extends WXPayConfig{
	
	@Value("${appId}")
	private String appId;
	@Value("${merchantId}")
	private String merchantId;
	@Value("${key}")
	private String key;
	
	@Override
	String getAppID() {
		return appId;
	}

	@Override
	String getMchID() {
		return merchantId;
	}

	@Override
	String getKey() {
		return key;
	}

	@Override
	InputStream getCertStream() {
		return null;
	}

	@Override
	IWXPayDomain getWXPayDomain() {
		return new WXPayDomainImpl();
	}

}
